package com.paradise.sharding.eth.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * ETH区块表
 * </p>
 *
 * @author Paradise
 * @since 2021-07-15
 */
@TableName("t_eth_block")
public class EthBlock implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 区块高度
     */
    private Long number;

    /**
     * 哈希
     */
    private String hash;

    /**
     * 矿工地址
     */
    private String miner;

    /**
     * 交易数量
     */
    private Integer count;

    /**
     * 同步状态
     */
    private Integer status;


    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public String getMiner() {
        return miner;
    }

    public void setMiner(String miner) {
        this.miner = miner;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "EthBlock{" +
        "number=" + number +
        ", hash=" + hash +
        ", miner=" + miner +
        ", count=" + count +
        ", status=" + status +
        "}";
    }
}
